import request from '@/utils/request'

export function employeeList(data) {
    return request({
        url: '/api/employee/list',
        method: 'post',
        data
    })
}

export function employeeAdd(data) {
    return request({
        url: '/api/employee/add',
        method: 'post',
        data
    })
}

export function employeeDel(data) {
    return request({
        url: '/api/employee/delete',
        method: 'post',
        data
    })
}

export function employeeEdit(data) {
    return request({
        url: '/api/employee/update',
        method: 'post',
        data
    })
}

export function employeeListAll() {
    return request({
        url: '/api/employee/listAll',
        method: 'post',
    })
}

export function employeeFindOne(data) {
    return request({
        url: '/api/employee/findById',
        method: 'post',
        data
    })
}